package test;

import cn.hutool.core.io.FileUtil;

import java.io.File;

public class FileRename {

    public static void main(String[] args) {
        File directory = new File("/Users/hym/Desktop/CV_NEW/尿素自动化/230111/labels");
        File[] files = directory.listFiles();
        for (File file : files) {
            if (file.getName().startsWith(".")) {
                continue;
            }
            FileUtil.rename(file, "new_"+file.getName(), false, true);
        }
    }

}
